export class RectWidgetData {
  type: string
  initW: number
  initH: number
  x: number
  y: number
  width: number
  height: number
  active: boolean
  borderWidth: number
  borderColor: string
  borderStyle: string
  borderRadius: number
  backgroundColor: string
  zIndex: number
  config: object

  constructor(config: object = {}) {
    this.type = 'rect'
    this.initW = 100
    this.initH = 80
    this.x = 10
    this.y = 10
    this.width = 100
    this.height = 80
    this.active = true
    this.borderWidth = 1
    this.borderColor = '#000000'
    this.borderStyle = 'solid'
    this.borderRadius = 0
    this.backgroundColor = '#ffffff'
    this.zIndex = 0
    this.config = config
  }
}
